package me.send.business.base;

public class Pager {

    
	private Integer rows = 10;//默认的每页显示最大条数
	private Integer page = 1;//默认显示第一页

	private Integer start = 0; //，每页开始的下标，默认从0下标开始


	public Integer getRows() {
		if (this.rows == null || this.rows <= 0) {
			this.rows = 10;
		}
		return this.rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Integer getPage() {
		if (this.page == null || this.page <= 0) {
			this.page = 1;
		}
		return this.page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getStart() {
		this.start = (this.getPage() - 1) * this.getRows();
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

}
